<?php
/**
 * Created by PhpStorm.
 * User: Huyang
 * Date: 2016/9/12
 * Time: 16:58
 */

namespace App\Http\Repositories\Daos;

interface IBaseDao
{

    public function find($id);

    public function byIds($ids, $key = 'id');

    public function mapName($ids, $mapId, $mapField, $key);

    public function byKey($key, $symbol, $val);

    public function update($where, $data);

    public function count($where);

    public function exists($where);

    public function page($filterMap,$page, $size, $order);

    public function increment($field, $value, $where = [], $update = []);

    public function decrement($field, $value, $where = [], $update = []);

    public function whereInt($filterMap, $allow, $data, $isArray = true);

}